<%-- 
    Document   : addProject
    Created on : Jul 28, 2012, 10:38:25 AM
    Author     : VANANH
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">

<%@taglib prefix="f" uri="http://java.sun.com/jsf/core" %>
<%@taglib prefix="h" uri="http://java.sun.com/jsf/html" %>
<%@taglib prefix="rich" uri="http://richfaces.org/rich" %>
<%@taglib prefix="a4j" uri="http://richfaces.org/a4j" %>
<html>
    <head>
        <link rel="stylesheet" type="text/css" href="../css/popup.css"/>  
        <link rel="stylesheet" type="text/css" href="../css/kapiform.css"/>
    </head>
    <script type="text/javascript">
        var open_cur = 0;
        $j = jQuery.noConflict();
        $j(document).ready(function(){
              
          
            validateform("form-input-customer");
        });

    </script>
    <style type="text/css">
        .bg_department{
            height: 68 !important;
        }
    </style>
    <f:view>
        <a4j:form id="form-input-customer" >
            <body style=" float:left; width:auto; height:auto; margin:0px;">
                <f:loadBundle basename="#{environmentSession.localizationSource}" var="locale"/>

                <div class="popup" style="height:300px; width:465px">
                    <div class="popup-header">
                        <div class="title"><h:outputText value="#{locale.manager_project}"/></div>
                    </div>
                    <div class="popup-content">
                        <div class="main_content">
                            <div class="form_item_content" style="margin-top:5px">
                                <div class="item_content" style="display:block">
                                    <div class="fields_input" style="margin-top:3px;">
                                        <label style="text-align:left; margin-left:21px"><h:outputText value="#{locale.abbreviation_name}"/>:</label>&nbsp;
                                        <h:inputText value="#{projectController.bv052}"  id="viettat" style="width:334px; float: left;margin-left:-55px;" />
                                        
                                    </div>
                                    <div class="fields_input">
                                        <label style="text-align:left; margin-left:21px"><h:outputText value="#{locale.project_name}"/> <span>*</span></label>
                                        <h:inputText value="#{projectController.bv051}" styleClass="required" id="cusname" style="width:399px;margin-left:25px;" />

                                    </div>                                      
                                    <div class="fields_input" style="margin-top:3px;">
                                        <label style="text-align:left; margin-left:21px"><h:outputText value="#{locale.description}"/> </label>
                                        <h:inputTextarea value="#{projectController.bv054}" style="height:70px; width:399px; margin-left:25px" ></h:inputTextarea>

                                        </div>

                                        <div class="alert"></div>
                                    </div>

                                </div>
                            </div>

                        </div>

                        <div class="popup-footer">
                            <h:inputHidden value="#{projectController.pb050}" id="pb050"/>
                            <div class="buttonsave" onclick="parent.jQuery.fancybox.close(); " style="margin-right:31px;"  ><span><h:outputText value="#{locale.button_close}"/></span></div>
                            <h:commandButton   onclick="return validatecheck('form-input-customer');"  action="#{projectController.updateProject}" value="#{locale.button_save}" styleClass="buttonsave">

                        </h:commandButton>


                    </div>

                </div>          
            </body>
        </a4j:form>
    </f:view>
</html>
<script type="text/javascript">
    $j(document).ready(function(){
        yhight = ($j('.popup').height()-90)+"px" ;
        $j('.main_content').css('height',yhight );
        $j('.popup-content').css('height',yhight );
    });
</script>
